package com.leesche.netdoll.communication.protocol.encoder;

import java.util.Date;

public class CommandData {

	private String deviceId;

	private String gameId;

	private String commandId;

	private Date timestamp;

	private Object[] args;

	public CommandData() {

	}

	public CommandData(String deviceId, String commandId, String gameId) {
		this(deviceId, commandId, gameId, null);
	}

	public CommandData(String deviceId, String commandId, String gameId, Object[] args) {
		this.deviceId = deviceId;
		this.commandId = commandId;
		this.gameId = gameId;
		this.timestamp = new Date(System.currentTimeMillis());
		this.args = args;
	}

	public String getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(String deviceId) {
		this.deviceId = deviceId;
	}

	public String getCommandId() {
		return commandId;
	}

	public void setCommandId(String commandId) {
		this.commandId = commandId;
	}

	public Date getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public Object[] getArgs() {
		return args;
	}

	public void setArgs(Object[] args) {
		this.args = args;
	}

	public String getGameId() {
		return gameId;
	}

	public void setGameId(String gameId) {
		this.gameId = gameId;
	}
}
